import request from '@/utils/http';

/** 分页查询设备列表 */
export const getDeviceList = (data: object) => {
  return request.post('/device/getDeviceList', data);
};

/** 统计设备数量 */
export const getStatistics = (data: object) => {
  return request.post('/device/statistics', data);
};

/** 批量需修改设备归属 */
export const batchChangeOwner = (data: object) => {
  return request.post('/device/batchChangeOwner', data);
};

/** 停用/启用 */
export const enableOrDisablRequest = (data: object) => {
  return request.post('/device/enableOrDisable', data);
};

/** 新增设备 */
export const addDeviceRequest = (data: object) => {
  return request.post('/device/addDevice', data);
};

/** 查看设备登录密码 */
export const viewPasswordRequest = (data: object) => {
  return request.post('/device/viewPassword', data);
};

/** 查看与编辑数据回显 */
export const getDeviceByIdRequest = (data: object) => {
  return request.post('/device/getDeviceById', data);
};

/** 导出 */
export const exportRequest = (data: object) => {
  return request.post('/device/export', data);
};


/** 编辑保存 */
export const editDeviceRequest = (data: object) => {
  return request.post('/device/editDevice', data);
};
